package com.dzsw.dp.corp.chain.handler.logtest;

import com.dzsw.dp.corp.chain.handler.DemoRequest;
import com.dzsw.dp.corp.chain.handler.DemoResponse;
import com.dzsw.dp.corp.chain.handler.GeneralHandler;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class LogTestHandler extends GeneralHandler<DemoRequest, DemoResponse> {

    private static Logger log = LogManager.getLogger(LogTestHandler.class);

    @Override
    protected void handle(DemoRequest logTestRequest, DemoResponse logTestResponse) {
        log.info("LogTestHandler.handle...1");
    }

    @Override
    protected void afterCompletion(DemoRequest logTestRequest, DemoResponse logTestResponse) {
        log.info("LogTestHandler.afterCompletion...1");
    }
}
